﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace Rswl.Common.Application.User.Dto
{
    public class ShippingAddressDto
    { 
        [JsonPropertyName("id")]
        public long Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [JsonPropertyName("name")] public string TrueName { get; set; }

        [JsonPropertyName("tel")] public string TelPhone { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        [JsonPropertyName("country")] public string Country { get; set; } = "";

        [JsonPropertyName("province")] public string Province { get; set; }

        [JsonPropertyName("city")] public string City { get; set; }
        [JsonPropertyName("county")] public string County { get; set; }

        [JsonPropertyName("areaCode")] public string AreaCode { get; set; }

        [JsonPropertyName("postalCode")] public string PostalCode { get; set; }

        [JsonPropertyName("addressDetail")] public string AddressDetail { get; set; }

        [JsonPropertyName("isDefault")] public bool IsDefault { get; set; }
        
        [JsonPropertyName("address")] public string AddressDetailInfo { get {
                return Province + City + County+AddressDetail;
            } }
    }
}
